﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class STowerCopy2Info extends IMessageBase
    {
        public var copyCode:int;
        public var level:int;
        public var surplusSeconds:int;
        public var result:Boolean;
        public const _type:int = 130;
        public static var _regist:STowerCopy2Info = new STowerCopy2Info(true);

        public function STowerCopy2Info(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new STowerCopy2Info();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.copyCode);
            param1.writeInt(this.level);
            param1.writeInt(this.surplusSeconds);
            param1.writeBool(this.result);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.copyCode = param1.readInt();
            this.level = param1.readInt();
            this.surplusSeconds = param1.readInt();
            this.result = param1.readBool();
            return;
        }// end function

    }
}
